<?php
$jsonData = $_POST;
//
file_put_contents(time(),json_encode($jsonData));

$jsonData = file_get_contents('php://input');

file_put_contents(time().'.log',$jsonData);

$ret = json_decode($jsonData,true);

$data = [
    'id',
    'object',
    'created',
    'model',
    'usage',
    'Choices'=>[
        [
            'text'=>$_SERVER['REQUEST_METHOD'] ,
            'index'=>0,
            'finish_reason'=>'length'

        ]
    ]
];

$data = [
    'nickname'=>'一家人',
    'content'=>date('H:i:s')."\t".$ret['content'],
];
$data['config'] = '跟发群';

echo json_encode($data);